<template>
  <el-card class="avue_height platformStockInList">
    <!-- <el-row :gutter="12" style="padding:10px">
      <el-col :span="4">
        <el-card :shadow="keyName=='1'?'always':'hover'" style="cursor: pointer;">
          <div @click="callback('1')">
            <h3 style="text-align:center">采购配送</h3>
          </div>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card :shadow="keyName=='2'?'always':'hover'" style="cursor: pointer;">
          <div @click="callback('2')">
            <h3 style="text-align:center">退货</h3>
          </div>
        </el-card>
      </el-col>
    </el-row>-->
    <search :keyName="keyName" @search="search" @resetSearch="resetSearch" ref="search" />
    <!-- <allShop ref="allShop" @trigger="trigger" v-show="keyName == '1'" />
    <openShop ref="openShop" @trigger="trigger" v-show="keyName == '2'" />-->

    <el-tabs v-model="keyName" type="card" @tab-click="callback">
      <el-tab-pane label="采购配送" name="1">
        <allShop ref="allShop" @trigger="trigger" />
      </el-tab-pane>
      <el-tab-pane label="退货" name="2">
        <openShop ref="openShop" @trigger="trigger" />
      </el-tab-pane>
    </el-tabs>
  </el-card>
</template>

<script src='./index'></script>

<style lang="scss">
.content {
  .table_caozuoAdd {
    margin: 10px 0px 20px 0px;
  }
}

.platformStockInList {
  h3 {
    margin: 0 0 10px 0;
  }
}
</style>